package com.goldcn.b2b.dao;

import com.goldcn.b2b.model.ClassifyDiscountGroup;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClassifyDiscountGroupMapper {
    int deleteByPrimaryKey(Long groupID);

    int insert(ClassifyDiscountGroup record);

    int insertSelective(ClassifyDiscountGroup record);

    ClassifyDiscountGroup selectByPrimaryKey(Long groupID);

    int updateByPrimaryKeySelective(ClassifyDiscountGroup record);

    int updateByPrimaryKey(ClassifyDiscountGroup record);

    List<ClassifyDiscountGroup> selectAll(@Param("companyID")Long companyID);

    Long countByGroupName(@Param("groupName")String  groupName,@Param("companyID")Long companyID,@Param("groupID")Long groupID);


}